<?php // no direct access
defined('_JEXEC') or die('Restricted access'); ?>
<div class="realestatemanager_<?php if($moduleclass_sfx!='') echo $moduleclass_sfx ;?>">
<ul class="similaire">
<?php 
global $mosConfig_live_site, $mosConfig_absolute_path;
foreach ($list as $item) :	?>
<li>
	<div class="miniature">
  <?php 
        
        if($item->image_link!=''){  
            $imageURL =  $mosConfig_live_site.'/components/com_realestatemanager/photos/'. $item->image_link ;
            $file_pth= pathinfo($imageURL);
            $file_type=".".$file_pth['extension'];
            if(array_key_exists  ( 'filename' , $file_pth  ) ) $file_name=$file_pth['filename'];
            else $file_name = substr($imageURL, 0,strlen($imageURL)-strlen($file_pth['extension'] ) -1 );
            $file=$mosConfig_absolute_path . '/components/com_realestatemanager/photos/'. $file_name ."_gallery". $file_type;
            if(!file_exists($file)){
              $file=$mosConfig_live_site . '/components/com_realestatemanager/photos/'. $file_name."_mini".$file_type;
            }
            else $file=$mosConfig_live_site . '/components/com_realestatemanager/photos/'. $file_name."_gallery".$file_type;
            $imageURL=$file;
        }
        else $imageURL = "./components/com_realestatemanager/images/no-img_eng.gif";
  
  
  ?> 


    <a href="index.php?option=com_realestatemanager&task=view&catid=<?php echo $item->cid; ?>&Itemid=<?php echo $itemid; ?>&id=<?php echo $item->id; ?>" title="<?php echo $item->htitle; ?>">
  		<img  style="width:100px;" src="<?php echo $imageURL?>" alt="<?php echo $item->htitle; ?>" />
		</a>
	</div>
	<div>
		<h3><?php echo $item->htitle ; ?></h3>
		<h4><?php echo $item->hcity; ?></h4>
 	


		<?php if ($item->price!='' ){ ?><span class="prix"><?php echo $item->price; ?>&euro;	</span><?php } ?>
	</div>
</li>
<?php endforeach; ?>
</ul>
<div style="text-align: center; margin-top: 20px;"><a href="http://ordasoft.com" style="font-size: 10px;">Powered by OrdaSoft!</a></div>
</div>
